package com.yds.dubbo.webservice.consumer;

import com.yds.dubbo.webservice.consumer.action.GreetingServiceConsumer;
import com.yds.dubbo.webservice.consumer.config.ConsumerConfiguration;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author liuhongzhen
 * @date 2023/3/23 14:19
 */
public class WebserviceConsumer {

    public static void main(String[] args) throws Exception {

        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ConsumerConfiguration.class);
        context.start();

        GreetingServiceConsumer greetingServiceConsumer = context.getBean(GreetingServiceConsumer.class);
        String hello = greetingServiceConsumer.doSayHello("zookeeper");

        System.out.println("result:" + hello);
    }

}
